-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(bidi): pointerMove action needs to floor fractional values for x and y position #34191
chore(bidi): pointerMove action needs to floor fractional values for x and y position #34191
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@whimboo Do you plan to update this PR or should we close it? |
Ideally yes, but I'm lacking time at the moment. Could someone from your side assist and finish this patch? I would appreciate. |
…x and y position. For elements that are only 1 pixel in size, rounding can cause the click to occur outside the element’s rect. For example, a 1px div at (8,8) would not be reached if the click is rounded to (9,9).
8af1764
to
c062552
Compare
I've pushed rebased version to whimboo:bidi-perform-action-move-fractional |
On a closer look, the problem is specific to Firefox implementation of Bidi as Chromium does not throw on fractional coordinates and handles them just fine (as underlying CDP implementation does, I guess). I see that in the spec the coordinates are typed as |
Test results for "tests 1"11 flaky37801 passed, 655 skipped Merge workflow run. |
For elements that are only 1 pixel in size, rounding can cause the click to occur outside the element’s rect.
For example, a 1px div at (8,8) would not be reached if the click is rounded to (9,9).
This will fix the test
page/page-click.spec.ts :: should click the aligned 1x1 div
.@yury-s can you please review? Thanks.